package cn.usian.order.controller;

import cn.usian.order.pojo.Order;
import cn.usian.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 06 05 16 18
 **/
@RestController
@RequestMapping("/v1/api/order")
public class OrderController {

  @Autowired
  OrderService orderService;

  @RequestMapping("/getOrderById")
  public Order getOrderById(Integer id){
      Order order = orderService.getOrderById(id);
      return order;
  }

}
